package org.geeks.repository;

import java.util.List;

import org.geeks.domain.UserSolr;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.query.Param;
import org.springframework.data.rest.core.annotation.RestResource;
import org.springframework.data.solr.repository.Boost;
import org.springframework.data.solr.repository.SolrCrudRepository;

/**
 * User Repository
 * 
 * @author Geek4J
 *
 */
@RestResource(path = "userSolr")
public interface UserSolrRepository extends SolrCrudRepository<UserSolr, String> {

	List<UserSolr> findByUsernameOrAge(@Param("username") String username, @Param("age") @Boost(2) Integer age,
			Pageable page);
}
